import api from './api';

export const aiService = {
  async getAiSuggestions(currentWeather, forecastWeather, cityName) {
    try {
      const response = await api.post('/ai/suggestions', {
        currentWeather,
        forecastWeather,
        cityName,
      });
      console.log('[aiService] AI Suggestions raw response:', response);
      return response;
    } catch (error) {
      console.error('[aiService] Error fetching AI suggestions:', error);
      throw error;
    }
  },
}; 